<?php
require_once 'config.php';
require_once 'function.php';
require_once 'class/Mysql.class.php';

$db = new Mysql();


foreach( $table as $v ){
	$rows = $db->getAll('Table_'.$v, 1, 'D_ID,url');
	foreach ( $rows as $row ){
		$url = str_replace( 'wondershare.com', 'wondershare.de', $row['url'] );
		$db->update( 'Table_'.$v, array('url'=>$url), 'D_ID='.$row['D_ID'] );
	}
}
